<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>GMC App Launcher</title>
<link rel="stylesheet" href="<?php echo $this->config->item('staticPath'); ?>/css/960/reset.css" />
<link rel="stylesheet" href="<?php echo $this->config->item('staticPath'); ?>/css/960/text.css" />
<link rel="stylesheet" href="<?php echo $this->config->item('staticPath'); ?>/css/960/960.css" />
<link rel="stylesheet" href="<?php echo $this->config->item('staticPath'); ?>/css/960/demo.css" />

<style>
    *x{outline: 1px solid red;}
    .line{outline: 1px solid #ccc;}
    .app_pad{  float:left; width:160px; height:160px; margin:45px 36px 0px 36px; cursor:pointer; }
      .app_pad .desc{position: relative; margin-top:-28px;}
      .app_pad .desc span{ font-size:1.1em; font-weight:bold;}
      .app_pad .desc div{ font-size:1.1em; }
    .app_container{width:720px;}
</style>
</head>
<body>
<!--<h1>
  <a href="http://960.gs/">960 Grid System</a>
</h1> -->
<div class="container_head">
  <div class="grid_6">
    <h4>
    GMC - App launcher
    </h4>
  </div>
  <!-- end .grid_6 -->
  <div class="grid_6">
  <span style="visibility:hidden"><input name="" type="text" class="search"> 
  <img src="img/button_search.png" width="20" height="20"></span>
  <span><select name="" class="select">
    <option>English</option>
    <option>Thai</option>
  </select></span>
  <span class="user"><img src="<?php echo $this->config->item('staticPath'); ?>/img/button_user.png" width="20" height="20"> <?php echo ($this->session->userdata('firstName')) ? ucfirst($this->session->userdata('firstName')) : $this->session->userdata('username'); ?></span>
  	<a href="<?php echo site_url('/main/logout'); ?>">Logout</a>
  </div>
  <!-- end .grid_6 -->
</div><div class="clear"></div>

<div class="container_12" align="center">
	<div class="app_container" >  

<?php if ($errors = validation_errors()): ?>
	<div class="error">
		<?php echo $errors; ?>
	</div>
<?php endif; ?>
			
 <?php  if  (@$this->permission->permissions['alls']['view']) :?>   
  <a href="<?php echo $this->config->base_url();?>alls">
    <div class="app_pad" id="app_pad1">
      <img src="<?php echo $this->config->item('staticPath'); ?>/images/focus_app_icon_alls.png" />
      <div class="desc">
        <span>Asean Language</span>
        <div>Learning System</div>
      </div>
    </div>
  </a>
<?php endif;?>
<?php  if (@$this->permission->permissions['acakm']['view']) :?>      
  <a href="<?php echo $this->config->base_url();?>acakm">  
    <div class="app_pad" id="app_pad2">
    <img src="<?php echo $this->config->item('staticPath'); ?>/images/focus_app_icon_acakm.png" />
      <div class="desc">
        <span>ASEAN Content</span>
        <div>Analysis and Knowledge Management</div>
      </div>
    </div>
  </a>
<?php endif;?>
<?php  if (@$this->permission->permissions['akrs']['view']) :?>    
  <a href="<?php echo $this->config->base_url();?>akrs">  
    <div class="app_pad" id="app_pad3">
    <img src="<?php echo $this->config->item('staticPath'); ?>/images/focus_app_icon_akrs.png" />
      <div class="desc">
        <span>Asean Knowledge-Base</span>
        <div>and Counselling System</div>
      </div>
    </div>
  </a>
<?php endif;?>
<?php  if (@$this->permission->permissions['ssm']['view']) :?>
  <a href="<?php echo $this->config->base_url();?>ssm">
    <div class="app_pad" id="app_pad4">
    <img src="<?php echo $this->config->item('staticPath'); ?>/images/unfocus_app_icon_usc.png" />
      <div class="desc">
        <span>System Secuirty</span>
        <div>and Management</div>
      </div>
    </div>
  </a>
<?php endif;?>
<?php  if (@$this->permission->permissions['cdcs']['view']) :?>
   <a href="<?php echo $this->config->base_url();?>cdcs">
    <div class="app_pad" id="app_pad5">
    <img src="<?php echo $this->config->item('staticPath'); ?>/images/unfocus_app_icon_career.png" />
      <div class="desc">
        <span>E-School</span>
        <div>System</div>
      </div>
    </div>
  </a>
<?php endif;?>
<?php  if (@$this->permission->permissions['eschool']['view']) :?>
   <a href="<?php echo $this->config->base_url();?>eschool">
    <div class="app_pad" id="app_pad6">
    <img src="<?php echo $this->config->item('staticPath'); ?>/images/focus_app_icon_eschool.png" />
      <div class="desc">
        <span>Asean Language</span>
        <div>Learning System</div>
      </div>
    </div>

  
  </a>
  <?php endif;?>
    </div>
	<div class="clear"></div>
  <div class="grid_1">
  	<div class="footer">
    <p><a href="index.html">About Us</a> ׀<a href="index.html"> Course & Program</a> ׀    News and Activity    ׀    Download    ׀    Contact Us<br>
    Powered & Copyrighted by Genesis MediaCom, All rights reserved.   </p>                            	   			
    </div>
  </div>
  
</div>
<!-- end .container_12 -->

<!-- end .container_16 -->
</body>
</html>